package com.project.service.impl;

import com.project.bean.ProcessBean;
import com.project.mapper.IProcessMapper;
import com.project.service.IProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

@Service
public class ProcessServiceImpl implements IProcessService {
    @Autowired
    private IProcessMapper processMapper;

    @Override
    public void finishProcess(int processId) {
        processMapper.finishProcess(processId, LocalDate.now().toString());
    }

    @Override
    public void addEmForPro(ProcessBean process) {
        processMapper.addEmForPro(process);
    }
}
